package com.feri.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @autor wfl
 * @time 2022/10/4
 */
@Data
@NoArgsConstructor
@TableName("c_type")
public class Type {
    @TableId(type = IdType.AUTO)
    @TableField(value="id")
    private Integer id;
    private String name;
    private Date ctime;

    public Type(String name) {
        this.name = name;
        this.ctime = new Date();
    }
}
